<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>机器人</title>
</head>
<body>
  <script type="text/javascript">
  function tulin(say){
    var say = say;
    switch(say){
      case'土豆':
      console.log('哟');
       break;
       case'哟':
       console.log('切克闹');
       break;
       default:
    }
  }
  tulin('土豆');
  tulin('哟');
  </script>
  </body>
  </html>
